package com.freak.freakmusic.model.example

import android.view.View
import com.freak.freakmusic.R
import com.freak.freakmusic.base.BaseAbstractMvpFragment

/**
 * MVP模式的fragment例子
 */
class ExampleFragment : BaseAbstractMvpFragment<ExampleContract.View,ExampleContract.Presenter>(), ExampleContract.View {

    override val layoutId: Int
        get() = R.layout.activity_example

    override fun createPresenter(): ExamplePresenter {
        return ExamplePresenter()
    }

    override fun initEventAndData(view: View) {
    }

    override fun initLazyData() {
    }

    override fun showLoading() {
    }

    override fun showToast(toast: String) {
    }
}